﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WSPay.Common;
using WSPay.Common.Data;

namespace WSPay.Domain
{
    /// <summary>
    /// 文史币账户变动交易流水
    /// </summary>
    public class WSBAccountSeq:IEntity
    {
        public WSBAccountSeq()
        {
        }

        public WSBAccountSeq(Guid userID,int accountID)
        {
            UserID = userID;
            AccountID = accountID;
            CreateTime = DateTime.Now;
        }
        public int ID { get; set; }

        public Guid UserID { get; set; }  

        /// <summary>
        /// 所属文史币账号ID
        /// </summary>
        public int AccountID { get; set; }

        /// <summary>
        /// 资金流向
        /// </summary>
        public FlowFlag FlowFlag { get; set; }

        /// <summary>
        /// 变动类型
        /// </summary>
        public ChangeType ChangeType { get; set; }

        /// <summary>
        /// 变动前总金额
        /// </summary>
        public decimal PreAmount { get; set; }

        /// <summary>
        /// 变动后总金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 可用金发生额
        /// </summary>
        public decimal CashAmount { get; set; }


        /// <summary>
        /// 支付信息
        /// </summary>
        public string PayInfo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        #region  add by lyh
        /// <summary>
        /// 频道名称
        /// </summary>
        public string ChannelName { set; get; }
        #endregion

    }
}
